package 策略模式;

/**
 * @author zzs
 * @ClassName Charactet.java
 * @Description
 * @createTime 2022年05月09日 18:47:00
 */
public class Character {
    private  WeaponBehavior weaponBehavior;

    public Character(WeaponBehavior weaponBehavior) {
        this.weaponBehavior = weaponBehavior;
    }

    public void fight() {
        weaponBehavior.useWeapon();
    }
}
